window.onload = function() {
	//	          轮播图部分
	var lbt = document.getElementsByClassName('lbt')[0];
	var p = 1;
	setInterval(function() {
		lbt.setAttribute('src', './img/' + p + '.jpg');
		p++;
		if(p == 8) {
			p = 1;
		}
	}, 2000);
	//	轮播图部分结束

    //首页落花瓣效果
	function snowFlow(left, height, src) {
		var hua_box = document.createElement('div');
		var pic = document.createElement('img');
		var snowFlow = document.getElementById('snowFlow');
		pic.className = 'pic';
		hua_box.className = 'hua_box';
		snowFlow.appendChild(hua_box);
		hua_box.appendChild(pic);
		hua_box.style.left = left + 'px';
		hua_box.style.height = height + 'px';
		pic.src = src;
		setTimeout(function() {
			snowFlow.removeChild(hua_box);
		}, 5000);
	}
	setInterval(function() {
		var left = Math.random() * window.innerWidth;
		var height = Math.random() * window.innerHeight;
		var src = './img/hua.png';
		snowFlow(left, height, src);
	}, 300)
//首页落花瓣效果结束





      
}